package com.wt.util.axios;

import com.alibaba.fastjson.JSON;
import com.wt.util.R.R;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;

public class Return {
    public static void R(HttpServletResponse resp,R r) throws IOException {
        String resData = JSON.toJSONString(r);
        PrintWriter out = resp.getWriter();
        out.write(resData);
        out.flush();
        out.close();
    }
}
